/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2015 All Rights Reserved.
 */
package com.zb.jnlxc.constants;

import com.alibaba.fastjson.serializer.SerializeConfig;
import com.alibaba.fastjson.serializer.SimpleDateFormatSerializer;

import java.sql.Timestamp;
import java.util.Date;

/**
 *
 * @author zhengbo.zb
 * @version $Id: JsonConst.java, v 0.1 2015-02-26 16:13 zhengbo.zb Exp $
 */
public class JsonConst {
    public static SerializeConfig defaultConfig = new SerializeConfig();
    static {
        defaultConfig.put(Date.class, new SimpleDateFormatSerializer("yyyy-MM-dd HH:mm:ss"));
        defaultConfig.put(Timestamp.class, new SimpleDateFormatSerializer("yyyy-MM-dd HH:mm:ss"));
    }

}
